<extend name="Base/common"/>
<block name="style">
     <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<block name="header">
    <include file="Public/_nav"/>
</block>
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">
             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
          <ul class="nav nav-tabs">
          <li><a href="{:U('Jshj/index')}">教师获奖登记</a></li>
          <li><a href="{:U('Jshj/hjhz')}">教师获奖汇总</a></li>
          <li><a href="{:U('Lwfb/index')}">教师论文发表登记</a></li>
          <li class="active"><a href="{:U('Lwfb/hz')}">教师论文发表汇总</a></li>

          </ul>
          <!-- 查询表单start -->
                <div class="right_box">
                    <form method='post' id="form1" name="form1"  action="{:U('Lwfb/hz')}" class="form-horizontal form-condensed">

                    <div class="form-group">
                       <label class="col-md-1 control-label" for="year">学年:</label>
                       <div class="col-md-2">
                       <input type="text" class="form-control" name="year" value="{$year}">
                       </div>

                       <label class="col-md-1 control-label" for="teacher">姓名:</label>
                       <div class="col-md-2">
                       <input type="text" class="form-control" name="teacher" value="{$aTeacher}">
                       </div>                 
                       <div class="col-md-1">
                       <button type="submit" class="btn btn-primary">&nbsp;查询&nbsp;</button>
                    </div>

                    <div class="col-md-2">
                      <!--  <a href="{:U('Jshj/excel_2')}" class="btn btn-danger ">&nbsp;导出汇总金额&nbsp;</a></div> -->
                      <a href="{:U('Lwfb/lwfbexcel')}" class="btn btn-success ">&nbsp;导出&nbsp;Excel汇总表&nbsp;</a>
                    </div>
                  </form> 
                </div>
                <!-- 查询表单end -->
       <!-- 数据表格开始 -->
             <div class="right_box">
        <table class="table table-bordered">
              <COLGROUP span="5"></COLGROUP>
              <COL width="10%" ></COL>
              <COL width="7%" ></COL>
              <COL width="8%" ></COL>
              <COL width="7%" ></COL>
        <thead>
          <tr>
            <th>#</th>
            <th>学年</th>            
            <th>作者</th>
            <th>文章标题</th>
            <th>报刊名称</th>
            <th>邮代</th>
            <th>发表日期</th>
            <th>登记日期</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name='list' id='vo'>
          <tr>
            <td>{$i}</td>
            <td>{$vo.year}学年</td>

            <td>{$vo.teacher}</td>
            <td>{$vo.title}</td>
            <td>{$vo.bkmc}</td>
            <td>{$vo.yfdh}</td>
            <td>
            <if condition="($vo.status neq 1)"> 
            <span style="color:red"> {$vo.date}</span>
             <else/>
            {$vo.date}
            </if>
            </td>
            <td>{$vo.create_time|date="Y-m-d",###}</td>
            <td><a href="{:U('Lwfb/edit?id='.$vo['id'])}" ><i class="icon icon-edit"></i></a>
                <a href= "{:U('Lwfb/delete?id='.$vo['id'])}"  onclick="return confirm('删除后不可恢复，你确认要删除吗？')"><i class="icon icon-trash"></i></a>
                </td>
          </tr>
          </volist>
        </tbody>
      </table>
              </div> 
               <!-- 数据表格开始 -->
               <!-- 分页 -->
               <div class="right_box text-right"> 
                 &nbsp; {:getPagination($totalPageCount,$r)}
                </div>
              <!-- 分页 -->
            
        </div>
    </div>
  <!-- 右侧内容结束 -->  
 

   
</block>
